package my.main;

import java.util.List;

import my.bean.Dbcolumn;
import my.util.XmlCodeUtil;

public class XmlMain {

	public static void main(String[] args) throws Exception {
		/*
		 * 数据库的表名
		 */
		final String table = "eb_t_USER";

		ColForMysql colMysql = new ColForMysql();
		List<Dbcolumn> colList = colMysql.getCol(table);
		String xmlStr = XmlCodeUtil.xmlString(table, colList);
		System.out.println(xmlStr);
		
	}
}
